file chooser: Make keynav in save mode smoother
authorMatthias Clasen <mclasen@redhat.com>
Thu, 23 Jul 2015 05:04:15 +0000 (01:04 -0400)
committerMatthias Clasen <mclasen@redhat.com>
Thu, 23 Jul 2015 05:04:15 +0000 (01:04 -0400)
When using the location popup to complete to a directory name
(with a trailing /), we should not punish the user by making the
Open button insensitive and preventing the Enter key from doing
the expected thing (switching to that directory).

https://bugzilla.gnome.org/show_bug.cgi?id=752708

gtk/gtkfilechooserwidget.c

index 40cdd28446c4bfa20d0337b2acbd51f4aa402fab..c0d8e9761dff17aca1d2692f41dad3324b31c8fd 100644 (file)
@@ -5853,12 +5853,6 @@ gtk_file_chooser_widget_get_files (GtkFileChooser *chooser)
       if (!is_well_formed)
         return NULL;
 
-      if (is_file_part_empty && priv->action == GTK_FILE_CHOOSER_ACTION_SAVE)
-        {
-          g_object_unref (info.file_from_entry);
-          return NULL;
-        }
-
       if (info.file_from_entry)
         info.result = g_slist_prepend (info.result, info.file_from_entry);
       else if (!file_list_seen)